package a2;
import a1.People;

public class Student extends People{
	String c;
    public Student(int id, String name,String sex) {
        super(id,name,sex);
        this.id = id;
        this.name = name;
        this.sex = sex;
	    }

	 public String toString() {
		 return "Student(学生信息):  姓名：" + name + "    学号：" + id + "   性别：" + sex ;
	    }
	 public void tuike() {
	        c=null;
	 }
	 public void delete() {
	        if(c== null);{
	            System.out.println("学生目前未选课");}
	    }
	}

